Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How to set up the right compiler ?

    Unsolved
    2
    0 Votes
    2 Posts
    160 Views
    jsulmJ
    @hutiien You probably will need to install older VS version or Microsoft Build Tools version which has this old compiler. Keep in mind that you probably will not be able to use latest Qt versions with this compiler.
  • Odd behaviour with QPen/QColor

    Solved
    3
    0 Votes
    3 Posts
    208 Views
    PerdrixP
    @jsulm Yep you're right I did miss the obvious Doh! Slap head! painter.setPen(pen) would help a lot!
  • Get the string between two delimiters only.

    Solved
    17
    0 Votes
    17 Posts
    3k Views
    M
    @JonB Hi, I have added the separator. Its working fine. Thank you everyone for your support.
  • 1 Votes
    2 Posts
    817 Views
    jsulmJ
    @hoarylea How did you install Qt? Also, C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\lib\Qt6Widgetsd.lib is not the correct lib to link. How did you configure your project?
  • size() and constData() of QByteArray

    Solved
    3
    0 Votes
    3 Posts
    227 Views
    J
    @Bonnie Understood! thank you for your help!
  • Memory leaks and memory fragmentation

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    B
    @Chris-Kawa Is there an effective method for troubleshooting and monitoring memory fragmentation and memory leaks under Windows? How can I judge whether the current status is normal? I hope to receive your guidance
  • QMenuBar background image overlays Qmenu text when width of window is small

    Solved
    2
    0 Votes
    2 Posts
    217 Views
    Chris KawaC
    @HowitzerDev Menu bar items have a transparent background by default, so the menu bar will be visible. You can style the items to have opaque background using QMenuBar:item style and that will cover the menu bar background under the items.
  • How to change QChart origin to lower right corner?

    Unsolved qchart qlineserise
    1
    0 Votes
    1 Posts
    304 Views
    No one has replied
  • QT Designer changing the child's stylesheet from the parent's stylesheet

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    beautifulcloudB
    Okay I did this in QT Designer and it worked well :) I didn't understand what syntax was usable Thanks for your help @JonB [image: 0291aa8e-5742-4b46-86e7-0624d3ef2f15.png]
  • Determine memory leak

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    JonBJ
    @ollarch Yeah, just multiple humans don't work like multiple threads... And we don't Mutex well. :)
  • QChart line series not shown

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    JonBJ
    @printfne I believe (though not certain) that it is indeed an axes issue. When adding points to an existing series on the chart I think you have to adjust the axes to ensure it is within range to show,. All that matters in my code is the updating of the axes' ranges in addSeriesValues(). What does qDebug() << chart->axes().count() report? I assume the chart must always have some idea of axes and range/scale, else how would it know where to plot anything? If you have some points visible initially, you might also trying adding new points within the range of what is already there instead of beyond it. Maybe you would see such points updated. This question is about not seeing newly added points after the initial display of the chart. Even if you don't add points later you may need to call createDefaultAxes() anyway, I don't know.
  • 0 Votes
    5 Posts
    2k Views
    N
    And no comes a reply to myself ! We figured out how to hack towards the behaviour we need. 1/ we add an ObjectiveC .mm file to the project, to call somme MacOS Cocoa's stuff 2/ At application AppB startup, from this ObjectiveC file we call [NSApp hide:nil] which "hides" the application, and reactivate our AppA. Well... This turns into some flickering of the active application (because AppA looses for a few ms activation when AppB starts ; then AppB hides itself and AppA gets the active app again), but we can live with that ! Thanks
  • Class to add a footer to the QTabWidget widgets

    Solved
    3
    0 Votes
    3 Posts
    325 Views
    O
    @jsulm said in Class to add a footer to the QTabWidget widgets: @odelaune Simply put your QTabWidget and and the TabFooter in same vertical layout... Oh, yes of course. Thank you.
  • How to connect IP camera to QT ?

    Unsolved
    18
    0 Votes
    18 Posts
    3k Views
    V
    @JonB Thank you for your kind reply..I finally sort out the problem..but there's a 1 to 1.5 seconds delay in output..
  • Deselect *visually* at start of program

    Unsolved
    10
    0 Votes
    10 Posts
    682 Views
    JonBJ
    @GKLC By now I suggest you produce a 20-odd line standalone minimal example. Reduce to absolute least which produces behaviour. May not apply to you, but 50% of the time we ask for this the OP discovers the issue. Try for yourself just starting anew from a QTreeWidget.
  • Developing QScintilla based application then crashes

    Unsolved qscintilla qt-6 app-apple-crash
    2
    0 Votes
    2 Posts
    373 Views
    jsulmJ
    @JackMyson said in Developing QScintilla based application then crashes: BrStormTextMainWindow::handleTabChanged(int) I guess this is something you implemented? What are you doing there? According to the stack trace a tab is removed (QTabBar::removeTab(int)) and then BrStormTextMainWindow::handleTabChanged(int) is called - I guess you are trying to access something already deleted.
  • Multimedia not found but installed with maintain tool

    Solved
    2
    0 Votes
    2 Posts
    192 Views
    B
    @Mihan Try Multimedia with the second "m" in lowercase
  • Arrow appearance for QComboBox in QTableWidget

    Solved
    6
    1 Votes
    6 Posts
    589 Views
    Chris KawaC
    @tgbe Unfortunately there's a bit of time between creating a widget, showing it and it starting to process events, so the click that caused it to be created can't be directly forwarded to it. The way I usually deal with it is synthetize a dummy press and release events and send them to the widget using postEvent() once it's shown. Since there are multiple possible trigger types you can override editorEvent() to check what type of event caused the edit (click, keyboard etc.) and get the mouse position for the dummy click. I do this often enough that I wish this was a built-in option in the Qt delegates, but sadly it's not, so here we are.
  • SSL disable client initiated renegotiation

    Unsolved
    2
    0 Votes
    2 Posts
    241 Views
    B
    Hi all, I've the same problem... anyone found a way to disable renegotiation?
  • QDataStream default LittleEndian

    Solved
    5
    0 Votes
    5 Posts
    411 Views
    jsulmJ
    @OPit said in QDataStream default LittleEndian: why LittleEndian is always used with writeRawData Because writeRawData writes a bunch of bytes and byte order is not relevant for it. Byte order is only relevant for things like integers, floats, ... (for data types bigger than one byte).