Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从对话框中的条目中获取文本,例如登录对话框(获取用户和密码),我尝试使用“gtk_entry_get_text”,但我做错了,或者还有其他我可以使用的东西。
为了从对话框中的条目小部件中获取文本,您应该使用 gtk_entry_get_text。
char* entry_content; entry_content = gtk_entry_get_text(GTK_ENTRY(entry_widget));
你应该注意这些事情: