Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Getting QSqlDatabase to open in release mode

    Unsolved
    5
    0 Votes
    5 Posts
    671 Views
    C
    @Charlie2406 said in Getting QSqlDatabase to open in release mode: From Qt docs. Not these QSqlDatabase docs or any related example. That's why I asked.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • 0 Votes
    3 Posts
    770 Views
    S
    @SGaist Hi, I am using Qt version 6.5.0, on Windows, and to open fullscreen I am using the following code: void VideoWidget::mouseDoubleClickEvent(QMouseEvent *event) { setFullScreen(!isFullScreen()); event->accept(); } VideoWidget is just a derived class from QVideoWidget
  • Crash: Build on Sonoma, Deploy on Big Sur

    Unsolved
    2
    0 Votes
    2 Posts
    425 Views
    D
    bug filed
  • QSqlTableModel access trought object name

    Unsolved
    4
    0 Votes
    4 Posts
    311 Views
    gfxxG
    @JonB ok found my code (I update the example) is correct if inizialize all QSqlTableModel ...... problem: because need change QSqlTableModel every gui action not find a way to write correctly .... stkSqlViewLb = model_2; in sqlView void I try to tranform stkSqlViewLb to declared QSqlTableModel or "model_1", "model_2" etc etc ... these because I would use a model every tableView .... Actually with revised code all work perfect only to a first call of sqlView .... after can see only white tableView .... think because QSqlTableModel not match.
  • Does emit make a difference for slots with different thread affinity?

    Solved
    2
    0 Votes
    2 Posts
    252 Views
    JonBJ
    @SiGa emit (or Q_EMIT), as I wrote there, is nothing but a #define to empty, it's just to help you notice it's a signal. Recommended but not significant. So forget anything about the keyword emit itself. emit someSignal() expands to just someSignal(). The function that is called is the signal. The way that causes slots to be called differs (unless you do something explicit in the connect() statement) depending on whether the signal-slot connection is same-thread or cross-thread (at runtime): slot called directly in former case, slot queued for other thread's event loop in latter case. Hence same-thread/direct-connection signals make caller wait till all slots executed, cross-thread/queued-connection have caller continue immediately after simply posting the call to a queue for later execution.
  • QLabel displays bold text as non-bold from a certain size on

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    l3u_L
    @mpergand I just tried it with another machine where "Noto Sans" was selected from the beginning. Same issue, from a certain size on, the bold text was displayed non-bold. But after having changed the font to something else and back to "Noto Sans", the issue was gone. Maybe some strange configuration problem caused by an years old KDE profile and some updates?! Strange, but could be fixed by simply playing around with the font settings. Thanks for testing this however :-)
  • how include location module?

    Unsolved
    2
    0 Votes
    2 Posts
    241 Views
    Pl45m4P
    @S_E_E_N_U Have you checked the maintenance tool?
  • virtual multi display

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    E
    @SGaist said in virtual multi display: @Eric-Yin I would start with the tool documentation. Tried Xdmx, Qt Apps(even a simple widget without any code) always make Xdmx crash (Segmentation fault at address 0xc); xlogo got displayed at the back-end display without window frame.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • QStackedWidget to QDialog

    Unsolved
    9
    0 Votes
    9 Posts
    932 Views
    JonBJ
    @wasawi2 That was very convenient and easy. Sorry, but that doesn't make it the "right" way to do this. You want to export every widget from a UI class so that the outside world can access it directly, reading and writing. Yes, Designer makes sure the ui class is private precisely so you don't try to do this. Now if I move page1 into a QDialog which is a member of my MainWindow see myself forced to write getters and setters or signals and slots every time i need to read/write from one to another. That is what i wanted to avoid. So the question is if there is a way to write the QDialog instance so that i have access to its members anytime (even if its closed), and access from the dialog to the MainWindow's members without signals and slots. You are not supposed to do this, even though you consider it advantageous. Yes, you should write getters/setters on the containing widget and you should use signals/slots if appropriate. Yes you may have to move code around if you happen to change what page widgets are on. Equally your way code would have a hard dependency on a particular widget and its variable name in another UI class. Up to you whether you take this design advice or pursue the way you want to do it.
  • APK Android

    Solved
    3
    0 Votes
    3 Posts
    290 Views
    H
    @Oumayma said in APK Android: Hello, I am making an application that has the function of a text editor and when I generate the android version of the application, the menu does not come out as I would like I do not know if you can help me with it Menu Implementation: How have you implemented the menu in your text editor application? (e.g., using the Options Menu, Context Menu, Toolbar) Are you using any third-party libraries or custom views for the menu? Code Snippets: Could you share relevant code snippets related to the menu implementation in your application? Are there specific sections of your code where you believe the issue might be occurring? Menu Layout: Are you using XML layouts for your menu items, and have you verified that the layout files are correctly defined? Have you set appropriate icons, titles, and actions for each menu item? Menu Visibility: Are there any conditions or logic in your code that might affect the visibility or behavior of the menu items? Have you checked whether the menu items are correctly associated with the corresponding activities or fragments? Testing on Emulator/Devices: Have you tested the application on different Android devices or emulators to see if the issue is device-specific? Are there any particular Android versions where the menu behaves differently? Theme and Styles: Have you customized the theme or styles for your application, and could this be affecting the appearance of the menu? Are there any conflicts between your custom styles and the default Android styles for menus? Menu Events: Are the menu items responding to user interactions, such as clicks or long presses? Have you implemented the necessary event handlers for the menu items? Android Version Compatibility: Is your application designed to be compatible with a specific minimum Android version, and have you tested it on devices running that version or newer? Toolbar Configuration: If you're using a Toolbar for your menu, have you configured it correctly in your layout and activity or fragment? Have you set the Toolbar as the ActionBar for the activity? Screenshots or Descriptions: Can you provide a visual representation of how the menu appears and describe how you would like it to look? Are there any specific design requirements or guidelines you are trying to follow?
  • Customizing QPrintDialog - Need to remove access to disk storage

    Unsolved
    3
    0 Votes
    3 Posts
    250 Views
    jeremy_kJ
    @James-S said in Customizing QPrintDialog - Need to remove access to disk storage: 0 I need to customize the QPrintDialog in the Qt framework. The default view has controls that give access to local storage on the device. All access to local disks must be disabled on the dialog. Is this in reference to the print to file option? That can be turned off with the QAbstractPrintDialog::PrintToFile option. On my X11 test system with no other printer available, the dialog still shows the location as "local file", but the input to select a file is gone.
  • QSqlQuery hangs/crashes with QODBC driver - ODBC driver verified working with Python

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    Christian EhrlicherC
    @jars121 said in QSqlQuery hangs/crashes with QODBC driver - ODBC driver verified working with Python: if there is a trigger causing issues it seems to only trip up 6.6.0. When I'm correct it will also not work with the latest Qt5.15 (lts) and Qt6.5/6.2. If so then you have to blame the odbc driver since it does not return the correct string lengths. There was a fix for it to follow the odbc standard (and avoid wrong usage) but some ancient odbc drivers are not following the standard. So - please provide a fully working example.
  • WebRTC how-to. Is there any?

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    R
    @bogong hello can you please tell me what references you consulted to use Qt desktop WebRTC?
  • QChart and series replace issue

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    D
    @SGaist said in QChart and series replace issue: @dmitttri I was rather thinking about QWidget::setUpdatesEnabled. Thanks, I will try it!
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    180 Views
  • How do I customize <h1> header style for a QWidget

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    SGaistS
    @MMD18 hi, Because nothing has changed on that front for QLabel as it is not meant for complex html rendering. If you really need CSS styling, using WebEngine would be more indicated.
  • new a model to a simple table ;

    Unsolved
    7
    0 Votes
    7 Posts
    437 Views
    Christian EhrlicherC
    @Pl45m4 said in new a model to a simple table ;: integrated in the parent/child hierarchy and therefore deleted with parent (i.e. Dialog class)?! Yes, but that's imo much too late here.
  • 0 Votes
    8 Posts
    849 Views
    JoeCFDJ
    @Chris-Kawa Tested it. Works nicely. Many thanks.