Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • 0 Votes
    9 Posts
    629 Views
    sankarapandiyanS
    @JonB Sure thanks for your words
  • How to build and run simple qt application

    Solved
    4
    0 Votes
    4 Posts
    306 Views
    Pablo J. RoginaP
    @rajendrasp79 said in How to build and run simple qt application: it is working fine. so please mark your issue as solved then, thanks.
  • Is there any method to show tip when mouse hovering over label

    Solved
    4
    0 Votes
    4 Posts
    921 Views
    JonBJ
    @chris_rookie One possibility might be to follow the pattern in https://stackoverflow.com/questions/17221621/how-to-set-qt-tooltip-width. A more complex discussion is in https://stackoverflow.com/questions/4795757/is-there-a-better-way-to-wordwrap-text-in-qtooltip-than-just-using-regexp.
  • Can qtreewidget nodes be arranged horizontally?

    Solved
    8
    2 Votes
    8 Posts
    520 Views
    C
    @mrjj thank you.please give me a reputation
  • How does a QTreeview get populated

    Solved
    7
    0 Votes
    7 Posts
    646 Views
    VRoninV
    So you have to override the flag() method to fix that
  • How to control the quality/filesize of images copied to the clipboard?

    Unsolved
    24
    0 Votes
    24 Posts
    11k Views
    B
    Two years too late, but as I was having the exact same issue it might help a lost soul in the future. A workaround for this is to save a temporary image and copy to clipboard the url to the file. This is recognized in most software on Mac (PPTX, Keynote included) and should work on Windows. void ToClipboard(const QPixmap& pixmap) { QString filename = "/tmp/screenshot.png"; pixmap.save(filename); QList<QUrl> urls; urls << QUrl(filename); QMimeData* outputMime = new QMimeData; outputMime->setUrls(urls); qApp->clipboard()->setMimeData(outputMime); } Take care of the typical caveats when writing to disk from an application, but for most applications that might need this (user-generated, user-controlled operations) this is an ok workaround.
  • 0 Votes
    27 Posts
    4k Views
    sankarapandiyanS
    Yes it Run Thanks a Lot ..
  • 0 Votes
    5 Posts
    782 Views
    sankarapandiyanS
    @mrjj Great now its reaaly works , Thanks a lot HAve Fun .. :-) MArked as solved
  • QDockWidget & sizepolicy size with scroll area...

    Unsolved
    1
    0 Votes
    1 Posts
    239 Views
    No one has replied
  • Clearing QLineEdit leads to segmentation fault and crash

    Solved
    7
    0 Votes
    7 Posts
    795 Views
    S
    @jsulm said in Clearing QLineEdit leads to segmentation fault and crash: @Shoaib-Muhammad Member variables are variables defined in a class, like: class A { private: int aVar; // aVar is a member of class A }; Local variables are variables defined in a local scope. Local scope can be inside function or method for example: class A { private: int aVar; // aVar is a member of class A void someMethod() { int aVar = 0; // This is a local variable which only exists inside someMethod and is NOT the same as aVar above! // aVar = 0; //If you do it like this then you access the member variable } }; The problem with your code is exactly this: you define local variables with exactly same names as your member variables. Thank you for the concise and clear explanation. It does make sense now that you mention it.
  • Codesign and deploy on osx

    Solved
    12
    0 Votes
    12 Posts
    919 Views
    O
    @SGaist Thanks.
  • Qt Missing DLLs

    Unsolved
    2
    0 Votes
    2 Posts
    703 Views
    SGaistS
    Hi, If you want to use your application outside Qt Creator, you have to follow the deployment instructions. The most simple is to use windeployqt for that.
  • How to count number of visible children in a QTreeWidget

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, The visualRect method comes to mind for that.
  • Qt WebEngine: External canvas JS library

    Unsolved
    1
    0 Votes
    1 Posts
    425 Views
    No one has replied
  • Take pixmap of pressed button ?

    Unsolved
    9
    0 Votes
    9 Posts
    720 Views
    D
    Is there no way to initiate styleDelegate with pressed flag maybe? Regards Dariusz
  • Different behavoir for a "Creator made app" and a "manual coded app"? How comes.

    Solved
    7
    0 Votes
    7 Posts
    522 Views
    ademmlerA
    @Chris-Kawa Dear Chris, thx again. this solved a lot. I have incorporated your recommendations. Now the image gets "cropped". You may tell me again what's wrong or why this happens. thx again in advance. The actual test: http://files.lacunasolutions.com/various/ImageViewerBogo-mod3.zip
  • Warning-Unknown color name '#0000'

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    R
    @J-Hilk thanks for your feedback
  • QUdpSocket missing packets when connected to local switch to rasberry pi

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    S
    Finally found the solution. I modified the udp buffer to a very large value as mentioned here... http://thewowza.guru/how-to-increase-udp-buffers-under-windows-os/ using setsocketoption to about 1250000 and voila! it works with out any packet drops. Finally relieved :)...
  • resizeEvent() only enabled with the window corner

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    F
    @dheerendra thank you for your quick answer. But I want to block ONLY the vertical and horizontal resize, but I want TO ENABLE just the window corner resize, like a proportional image resize keeping the window aspect ratio. option 1: blocks all option 2: blocks all option 3: I have the MainWindow::resizeEvent(QResizeEvent *event) method, but I don't know how to filter this specific window corner resize event. Could you help me?
  • Transparent background: QChartView

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    F
    @SamurayH Thank you so much! I'm looking for this line for hours in the Qt documentation...