Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator Starting and/or Compiling to the Wrong Window System on Ubuntu

Qt Creator Starting and/or Compiling to the Wrong Window System on Ubuntu

Scheduled Pinned Locked Moved General and Desktop
20 Posts 4 Posters 8.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 1 Offline
    1 Offline
    1blah111111
    wrote on last edited by
    #1

    Alright, I am using Gnome, and have both the packages from the repository, and the .bin downloaded and installed, however, for some reason, the shortcut on my desktop will start Qt Creator as if I'm using KDE (I have the KDE Desktop installed for compatibility with some of the applications I use) It also build to KDE when I start Qt Creator through the desktop shortcut. However, if I start Qt Creator from my applications menu, it starts with the Gnome theme, However, it compiles to KDE. Another thing I noticed, when I ran it via the shortcut on my desktop, it doesn't let me preview to GTK+ . The program I'm making is designed for the Gnome desktop. If it's compiled to any other theme, it requires a tab scroller on the tab bar, however, it doesn't need one in Gnome.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MTK358
      wrote on last edited by
      #2

      How can it start "as if it's using KDE"?

      There is nothing GNOME or KDE-specific about a pure Qt app, it's just the theme that's different, and even that's not compiled into the executable.

      Also, if the application is just for GNOME (not Unix/X11 in general), shouldn't you be using GTK+ instead of Qt?

      1 Reply Last reply
      0
      • 1 Offline
        1 Offline
        1blah111111
        wrote on last edited by
        #3

        it is compiled into the executable, otherwise it would start with a gnome theme when i compile it, and it's meant for gnome at this screen resolution, however at a higher resolution than 1024 by 768, which is the resolution of this screen, it is just fine. Plus it's meant to be compilable to windows and mac as well.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MTK358
          wrote on last edited by
          #4

          Try compiling it, and then just running it (but not recompiling it) on GNOME and KDE.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            There was a discussion about a "similar issue":https://developer.qt.nokia.com/forums/viewthread/987/#4230. Is that what you are seeing as well?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MTK358
              wrote on last edited by
              #6

              1blah111111: Are you aware that GNOME and KDE use the same windowing system (X11)? Thus it's impossible to compile a program for just one or the other.

              1 Reply Last reply
              0
              • 1 Offline
                1 Offline
                1blah111111
                wrote on last edited by
                #7

                yep that is what i'm experiencing, except that i am actually able to preview for gtk, but it won't build for it.

                and yes mtk, i'm perfectly aware of it, and that is where your wrong, it is very much possible to build for one system or the other because the menus are accessed differently in the 2 systems, plus each has their own quarks.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MTK358
                  wrote on last edited by
                  #8

                  [quote author="1blah111111" date="1286224715"]and yes mtk, i'm perfectly aware of it, and that is where your wrong, it is very much possible to build for one system or the other because the menus are accessed differently in the 2 systems, plus each has their own quarks.[/quote]

                  I'm a Linux user and I've used both GNOME and KDE, and I'm not aware of such things.

                  All I know is that unlike GTK+, Qt themes can radically change the behavior of the user interface, including changing what scrollbar buttons are visible and even make combo boxes look and behave differently.

                  Also, a pure Qt app is completely disconnected from the desktop environment (unless you're using KDE or GNOME libs).

                  1 Reply Last reply
                  0
                  • 1 Offline
                    1 Offline
                    1blah111111
                    wrote on last edited by
                    #9

                    It's not a pure Qt app. :D but the other components are buildable (or at least a compatable solution exists) on other systems.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MTK358
                      wrote on last edited by
                      #10

                      Whet are the other components (and are they in any way related to GNOME or KDE)?

                      1 Reply Last reply
                      0
                      • 1 Offline
                        1 Offline
                        1blah111111
                        wrote on last edited by
                        #11

                        i'm gonna try re-installing the .bin, and see if it's been fixed yet.

                        1 Reply Last reply
                        0
                        • 1 Offline
                          1 Offline
                          1blah111111
                          wrote on last edited by
                          #12

                          it hasn't fixed it.

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            tobias.hunger
                            wrote on last edited by
                            #13

                            1blah111111: As you can see "here":http://qt.gitorious.org/qt-creator we have created a branch for the upcoming 2.1 release and are all busy testing and stabilizing it. We still managed to come up with a "new version":http://labs.qt.nokia.com/2010/10/06/qt-sdk-2010-05-1-for-linux-released/ for you though:-)

                            1 Reply Last reply
                            0
                            • 1 Offline
                              1 Offline
                              1blah111111
                              wrote on last edited by
                              #14

                              Huzzah! Relief from the eye pains of the CleanLooks style will be implemented as soon as it downloads.

                              btw 2 questions, (they'd be answered in the first post so i don't think they need their own topics :P ) if you #include a .cpp file it references that for functions right? (i've hit 1k lines in my main .cpp file so it'll be easier if i can split them up purely for organization, espicially since if i were to keep it all in one it would easily surpass 5k lines of code) also, what code would i use if i wanted to isolate and display a specific element in a QWebView?(just a snippet of code to do this is all i need) (i've tried and i keep getting errors in everything i try, since i'd have to remove all elements and i can't get it to let me remove them at the base level)

                              1 Reply Last reply
                              0
                              • 1 Offline
                                1 Offline
                                1blah111111
                                wrote on last edited by
                                #15

                                And yep that fixes all of my problems! No more eye pains! :P

                                1 Reply Last reply
                                0
                                • T Offline
                                  T Offline
                                  tobias.hunger
                                  wrote on last edited by
                                  #16

                                  1blah1+: How about openeing new threads for your new issues?

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    MTK358
                                    wrote on last edited by
                                    #17

                                    [quote author="Tobias Hunger" date="1286437516"]1blah1+: How about openeing new threads for your new issues?[/quote]

                                    ???????????

                                    1 Reply Last reply
                                    0
                                    • 1 Offline
                                      1 Offline
                                      1blah111111
                                      wrote on last edited by
                                      #18

                                      the reason i didn't open a new thread is because they aren't issues, just requests for code snippets.

                                      1 Reply Last reply
                                      0
                                      • D Offline
                                        D Offline
                                        DenisKormalev
                                        wrote on last edited by
                                        #19

                                        [quote author="1blah111111" date="1286471462"]the reason i didn't open a new thread is because they aren't issues, just requests for code snippets.[/quote]

                                        Better create new threads, they are far from title of this thread.

                                        1 Reply Last reply
                                        0
                                        • 1 Offline
                                          1 Offline
                                          1blah111111
                                          wrote on last edited by
                                          #20

                                          alright i will. at least, i'll put the question about isolating an element in a QWebView in a different thread, the other one still only needs a yes or no answer, (any chance i could actually get an answer to them rather than arguing over weather or not it should go in a new thread? :P )

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved