Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Itemview

    9
    0 Votes
    9 Posts
    3k Views
    A
    [quote author="Immii" date="1341867904"]I am wondering how can i use Qt::userRole here.[/quote] Not at all. Why do you make it so difficult for yourself? The proxy method really is the simplest route. An alternative could be to "just" create your own QHeaderView subclasses and render the headers yourself without using the model at all, but it is a much more complex route than using a trivial proxy model. And no, trying to use a delegate on the header is not going to work either.
  • Singleton on Qt.

    9
    0 Votes
    9 Posts
    7k Views
    D
    This fix my problem! Thanks!
  • Application slower on qt 4.8.0 than 4.7.4

    8
    0 Votes
    8 Posts
    3k Views
    C
    I fully trust you...that's really annoying
  • Beginner: link two forms using button?

    8
    0 Votes
    8 Posts
    2k Views
    S
    dvez43, thanks for the hint. :) I am looking at the documentation link you gave.
  • Getting Xcode 4 to recompile Qt resources on Build?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [closed] knowing screen coordinate .

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    A
    Closing this topic, due to duplication with "second topic":/forums/viewthread/18626/ of BibekKumar
  • 0 Votes
    5 Posts
    2k Views
    M
    Please be sure and edit the thread title to add [Solved]. Thanks!
  • [Solved] Flip a QGraphicsSvgItem on its center point

    6
    0 Votes
    6 Posts
    7k Views
    A
    Ah, the way I remember it, you have to read combined transform operations from the last operation to the first. That is, the item is first translated (last operation) so it's center is exactly where the parent's center is (in this case, the top/left of the scene). Then it is scaled. Because it's centered, it's scaled in all directions at the same rate. And finally (first operation), you have to move it back where it belongs.
  • Deploying an application containing database

    12
    1 Votes
    12 Posts
    5k Views
    A
    [quote author="nil_sunil" date="1341839770"]can we create dsn dynamically using qt code .. bcoz i'm using my sql server as database in my application and i create dsn mannually .. bt wen i distribute my app it will not find dsn .. unless i create dsn in every machine where i distribute my app .. can anyone help me in solving my prob ??[/quote] Merged with your previous topic. Please don't start multiple topics on the same issue.
  • QListWidget, QListWidgetItem and checked() signal.

    5
    0 Votes
    5 Posts
    8k Views
    A
    Or you just use "libqxt":http://libqxt.bitbucket.org/doc/0.6/qxtlistwidget.html which just has a signal for it.
  • QPainter::drawText consumes a lot of memory

    8
    0 Votes
    8 Posts
    5k Views
    W
    Thanks for your input.
  • [SOLVED] - QIODevice readyread() not raised

    2
    0 Votes
    2 Posts
    4k Views
    S
    Well... It seems to works again (and I didn't do anything...) So I bet it is the software I use to simulate COM ports, DAMN MONDAYS !
  • Add widget of another process

    5
    0 Votes
    5 Posts
    3k Views
    W
    Thanks Andre, i finally give up on this, it seems to me impossible to get the component rendered including the focus.
  • How can i integrate Qt VS Addin with VS Configuration Manager

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Custom network download intermrrent failures

    3
    0 Votes
    3 Posts
    2k Views
    P
    Problem solved. I had to create two QMovie objects and alternate there use. Several people locally to me expressesd interest in my solution. Rather than send out an email to each perrson I posted my solution as "Using Qt to display a WEB animated gif":http://getoddnews.com/2012/07/08/using-qt-to-display-a-web-animated-gif/ on my website for them and anyone else who may be interested.
  • How to play an audio-cd with Phonon?

    2
    0 Votes
    2 Posts
    2k Views
    M
    Ok, I think I have solved this issue. Currently I have code like this: @ Phonon::MediaObject *myMusic = Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource Phonon::Cd, QString("E:\"))); Phonon::MediaController myMediaController(myMusic); myMediaController.setAutoplayTitles(true); myMediaController.setCurrentTitle(7); myMusic->play(); @ "E:" is my cd-drive with inserted audio cd and I play the track #8 (track count starts from zero). Other issue on my Windows 7 system was Phonon warning: @unable to load the TOC from the CD@ This issue is related to Phonon Windows backend. Some Windows systems do not have CDDA codecs (or what is that thing is) installed. In this case Phonon application will not play Audio CD discs. You won't see any errors (except from above) and there won't be any cd drive activity. To fix this issue you should: Dowload proper cddareader.ax for your system (I used one from MPC HomeCinema Standalone Filters on http://sourceforge.net/projects/mpc-hc/files/) Open command line and execute regsvr32.exe cddareader.ax Reboot This code is tested on WinXP x86 and Win7 x64. Linux machine have played audio cd without problems (with different path of cource) Hope this information will be useful
  • 0 Votes
    4 Posts
    5k Views
    U
    Perspective in 2d? No such thing! ;) You can easily use 3 points as well, but it is overkill and unnecessary - you still can create a triangle and follow its transformations and apply those to the scene but it just adds to the complexity without adding any actual value. You can do it for the sake of doing it thou, you can use the area or perimeter/circumference of the triangle for scale and its orientation for rotation, but the latter you will still have to reduce to a line, i.e. follow the rotation of the triangle's height.
  • Edit vector elements when QListWidget Item is edited

    3
    0 Votes
    3 Posts
    2k Views
    C
    I am not familiar with MVC, it seems comprehensive study necessary for learn it. So i found temporary solution for this project. Thanks for your answer.
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • What is this widget? Is it available for Qt?

    6
    0 Votes
    6 Posts
    3k Views
    T
    Hi, ~Leon! Qt doesn't have this widget in defaults, but it's very simple to implement it on your own! I will do it in this way. In switcher - create horizontal layout. Create QLabel and set it's style via QSS. Move it in layout.